package com.blindBox.back.service.impl;

import com.blindBox.back.domain.Topic;
import com.blindBox.back.mapper.TopicMapper;
import com.blindBox.back.service.TopicService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 大忽悠
 * @since 2021-11-13
 */
@Service
public class TopicServiceImpl extends ServiceImpl<TopicMapper, Topic> implements TopicService {

    @Autowired
    private TopicMapper topicMapper;
    @Override
    public List<Map<Object, Object>> getAllTopicsWithUsers() {
        return topicMapper.getAllTopicsWithUsers();
    }

    @Override
    public boolean updateDeletedBoolean(Integer t_id) {
        return topicMapper.updateDeletedBoolean(t_id);
    }
}
